#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void reverse(char *p, int len)
{
	char *p0 = p;
	p = p + len - 1;
	int i, t;
	for (i = 0; i < len / 2; i++, p0++, p--)
	{
		t = *p0;
		*p0 = *p;
		*p = t;
	}
}
int main()
{
	char arr[100];
	int len;
	gets(arr);
	len = strlen(arr);
	reverse(arr, len);
	puts(arr);
	return 0;
}